<?php

namespace app\modules\entrys\models;

use Yii;

/**
 * This is the model class for table "gxc_duty".
 *
 * @property integer $DutyID
 * @property string $DutyDesc
 * @property string $Name
 */
class Duty extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'gxc_duty';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['DutyDesc'], 'string', 'max' => 200],
            [['Name'], 'string', 'max' => 64],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'DutyID' => '职位ID',
            'DutyDesc' => '职位说明',
            'Name' => '角色表主键',
        ];
    }
}
